<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./index.js" defer></script>
  <script src="../webgl-utils.js"></script>
  <link rel="stylesheet" href="./index.css" type="text/css">
  <script src="../webgl-ui.js"></script>
  <script src="../m3.js"></script>
</head>

<body>
  <canvas id="glcanvas"></canvas>
  <div id="uiContainer">
    <div id="ui">
      <div id="x"></div>
      <div id="y"></div>
      <div id="angle"></div>
      <div id="scaleX"></div>
      <div id="scaleY"></div>
    </div>
  </div>
  <script id="vertex-shader" type="notjs">

        //attribute vec4 a_position
        attribute vec2 a_position;

        attribute vec4 a_color;
        
        uniform vec2 u_resolution;
        uniform mat3 u_matrix;
        varying vec4 v_color;
        
        void main() {
          gl_Position = vec4((u_matrix * vec3(a_position,1)).xy , 0, 1);
          v_color = a_color;
        }

      </script>
  <!-- <script id="vertex-shader" type="notjs">
        attribute vec4 a_position;
        void main() {
            gl_Position = a_position;
        }
    </script> -->
  <script id="fragment-shader" type="notjs">
        precision mediump float;
 
        varying vec4 v_color;
       
        void main() {
          gl_FragColor = v_color;
        }
    </script>
</body>

</html>